import type {UserVO} from './user'

/**
 * 空间信息
 */
export interface SpaceVO {
    id: number
    userId: number
    spaceName: string
    spaceDesc?: string
    spaceType: number
    spaceLevel: number
    coverUrl?: string
    maxPictureCount: number
    maxStorageSize: number
    inviteCode?: string
    memberLimit: number
    currentUserRole?: string
    usage?: SpaceUsageVO
    user?: UserVO
    createTime?: string
}

/**
 * 我的空间
 */
export interface MySpaceVO {
    owner: SpaceVO[]
    joined: SpaceVO[]
}

/**
 * 邀请码
 */
export interface SpaceInviteVO {
    inviteCode: string
}

/**
 * 空间成员
 */
export interface SpaceUserVO {
    userId: number
    userName?: string
    userRole: string
    joinTime?: string
    user?: UserVO
}

/**
 * 成员列表
 */
export interface SpaceUserListVO {
    total: number
    list: SpaceUserVO[]
}

/**
 * 空间使用情况
 */
export interface SpaceUsageVO {
    currentPictureCount: number
    currentStorageSize: number
    currentMemberCount: number
}

